home *** CD-ROM | disk | FTP | other *** search
- /*
-
- #include <values.h>
- #include <types.h>
- #include <quickdraw.h>
- #include <fonts.h>
- #include <events.h>
- #include <controls.h>
- #include <windows.h>
- #include <menus.h>
- #include <textedit.h>
- #include <dialogs.h>
- #include <desk.h>
- #include <scrap.h>
- #include <toolutils.h>
- #include <memory.h>
- #include <segload.h>
- #include <files.h>
- #include <osutils.h>
- #include <osevents.h>
- #include <diskinit.h>
- #include <packages.h>
- #include <traps.h>
-
-
- #include <ctype.h>
- #include <fcntl.h>
- #include <string.h>
- #include <stdio.h>
- #include <ErrMgr.h>
- #include <CursorCtl.h>
- #include <Errors.h>
-
- #include <Devices.h>
-
- */
-
-
-
- #define FALSE (0)
- #define TRUE (!FALSE)
-
- #define PROC_ID 128
- #define ICON_ID 128
-
- int main(void);
-
- /*********************** Main *********/
-
- int main(void)
- {
- Handle codeResH;
- long ignoreResult;
-
- Handle procH;
-
- if ((procH = GetResource('PROC', PROC_ID)) != 0L) {
- HLock(procH);
- CallPascal(ICON_ID+1, 0, *procH);
- HUnlock(procH);
- }
-
-
- LoadResource(codeResH=GetResource('jpat',128));
- DetachResource(codeResH);
- MoveHHi(codeResH);
- HLock(codeResH);
-
- (*((long **)codeResH))[3]=GetTrapAddress(0xA93d);
-
- SetTrapAddress((long)*codeResH,0xA93d); /* Menu Select */
- Delay(20,&ignoreResult);
- if ((procH = GetResource('PROC', PROC_ID)) != 0L) {
- HLock(procH);
- CallPascal(ICON_ID, 0, *procH);
- CallPascal(ICON_ID+2, -1, *procH);
- HUnlock(procH);
- }
- }
-
-
-
-